html {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

body {
  font-size: 16px;
  line-height: 1.3;
  font-weight: 600;
  font-style: normal;
  background-color: #292929;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: "Rethink Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  line-height: 1.16;
}

ul {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
p {
  margin: 0;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.header {
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  width: 100%;
}

.header__top {
  background-color: #323232;
  height: 72px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(50, 50, 50, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.menu {
  display: flex;
  justify-content: space-between;
}

.menu__list {
  display: none;
  gap: 56px;
  color: #f3f3f3;
  padding: 0 10px;
}

.background__img {
  width: 100%;
  height: 350px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #dedede;
  font-size: 1.2rem;
  font-weight: 600;
}

.menu__btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu__btn span {
  display: block;
  width: 28px;
  height: 2px;
  background: #fff;
}

.header-bg {
  display: none;
}

.info {
  padding: 60px 30px;
}

.info__label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 12px;
}

html {
  scroll-behavior: smooth;
}

.menu__link {
  position: relative;
  transition: color 0.3s ease;
}

.menu__link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: currentColor;
  transition: width 0.3s ease;
}

.menu__link:hover::after {
  width: 100%;
}

.modal__link {
  position: relative;
  transition: color 0.3s ease;
}

.modal__link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: currentColor;
  transition: width 0.3s ease;
}

.modal__link:hover::after {
  width: 100%;
}

.info__title {
  font-size: 2rem;
  font-weight: 700;
  color: #f0f0f0;
  line-height: 1.2;
  margin-bottom: 40px;
}

.info__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 20px;
}

.info__key {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 6px;
}

.info__value {
  font-size: 1.1rem;
  font-weight: 600;
  color: #f0f0f0;
}

.info__problem-title {
  color: #888;
  margin-top: 130px;
  text-transform: uppercase;
}

.info__problem-text {
  color: #fff;
  margin-bottom: 50px;
}

.info__problem-link {
  list-style: none;
  color: #888;
  text-transform: uppercase;
  text-decoration: underline;
  gap: 15px;
  text-underline-offset: 10px;
}

.windows__images {
  margin-top: 50px;
  width: 100%;
  margin: 0;
  padding: 0;
}

.projects__solution-title,
.social__conclusion-title {
  margin-top: 200px;
  color: #888;
}

.projects__solution-text,
.social__conclusion-text {
  color: #f3f3f3;
  padding-top: 32px;
  margin-bottom: 64px;
}

.projects__solution-img {
  margin-top: 60px;
  margin: 0;
  padding: 0;
  width: 100%;
}

.projects__solution-ball,
.projects__solution-windows,
.social__conclusion {
  padding: 0 24px;
}

/* .social__conclusion-img {
  margin: 0 auto;
  width: 100%;
  padding: 0;
} */

.footer span {
  color: #f0f0f0;
}

.footer__title {
  color: #d3d3d3;
  text-decoration: underline;
  text-underline-offset: 10px;
  margin-top: 140px;
  align-items: center;
  justify-content: center;
  display: flex;
}

.footer__img {
  display: flex;
  gap: 32px;
  justify-content: center;
  align-items: center;
  padding-top: 48px;
}

.line {
  width: 100%;
  height: 1px;
  background-color: #696969;
  margin-top: 83px;
}

.footer__contacts-p {
  display: flex;
  justify-content: center;
  color: #888;
  padding: 60px 24px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  visibility: hidden;
}

.modal.is-open {
  display: block;
  pointer-events: all;
  visibility: visible;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: ty 0.35s ease;
}

.modal__content {
  position: absolute;
  top: 0;
  right: 0;
  width: 260px;
  height: 100%;
  background: #2a2a2a;
  padding: 80px 32px 32px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #f0f0f0;
  font-size: 1.4rem;
  cursor: pointer;
}

.modal__list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  transition: transform 0.3s ease-in-out;
}

.modal__link {
  color: #f0f0f0;
  font-size: 1.4rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.2s;
}

.modal__link:hover {
  color: #888;
}

.modal.is-open .modal__content {
  transform: translateX(0);
}

.modal.is-open .modal__overlay {
  opacity: 1;
}

@media (min-width: 1024px) {
  .container {
    max-width: 1440px;
  }
  .projects__solution-title {
    display: none;
  }
  .projects {
    margin-top: 234px;
  }
  /* .social__conclusion-img {
    width: 1248px;
    height: 674px;
  } */
  .projects__solution-ball,
  .projects__solution-windows {
    display: flex;
    align-items: center;
    gap: 40px;
  }
  .projects__solution-title {
    margin: 0;
  }
  .projects__solution-windows {
    margin-top: 275px;
  }
  .projects__solution-ball .projects__solution-img {
    order: -1;
    width: 50%;
  }
  .projects__solution-img {
    max-width: 600px;
  }
  .social__conclusion-img {
    /* max-width: 900px;
    display: block;
    margin: 0 auto; */
  }
  .background__img {
    height: 640px;
  }
  .menu__list {
    padding: 100px;
  }
  .info {
    max-width: 1050px;
  }
  .info__meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 290px;
  }
  .info__key {
    padding-top: 72px;
  }
  .info__problem {
    margin-top: 150px;
  }
  .info__title {
    font-size: 32px;
    white-space: wrap;
    max-width: 344px;
  }
  .info__problem-link {
    margin-top: 88px;
  }
  .windows__images {
    margin: 0;
    height: 769px;
    width: 100%;
    margin: 0 auto;
    display: block;
  }
  projects__solution-ball {
    display: flex;
  }
}

@media (min-width: 768px) {
  .modal__list {
    gap: 60px;
  }
  .info__meta {
    gap: 45px 30px;
  }
  .menu__btn {
    display: none;
  }
  .menu__list {
    display: flex;
  }
  .header-bg {
    display: flex;
  }
  .background__img {
    width: 100%;
    height: auto;
  }
}
